<?php $skin_url = $this->APP_STATIC_SERVER . '/skins/'. $this->APP_TEMPLATE . '/'. $this->APP_SKIN;?>
<?php if($this->enterprise && $this->enterprise->frontend_active == 1) : ?>
<div class="subcolumns">
    <div class="c30l">
        <img width="155" alt="<?php echo $this->enterprise->company_name_vn; ?>" src="<?php echo $this->APP_STATIC_SERVER; ?>/images/logos/<?php echo $this->enterprise->id ; ?>.jpg" />
    </div>
    <div class="c70r">
        <div class="subc">
            <?php if(!$this->permission || $this->permission->general_info['registration_number'] == 1   || $this->permission_viewall == 1) :?>
                <p><?php echo $this->translator()->widget('register_number'); ?>: <strong><?php echo $this->enterprise->registration_number ?></strong>, <?php echo $this->translator()->widget('date'); ?> <strong><?php echo $this->enterprise->registration_date; ?>, <?php echo $this->translator()->widget('city'); ?>. <?php echo $this->enterprise->registration_city; ?></strong> </p>
            <?php endif; ?>
            <?php if(!$this->permission || $this->permission->general_info['contact_address'] != 0 || 
            		 $this->permission->general_info['contact_tel'] != 0 ||
            		 $this->permission->general_info['contact_fax'] != 0 ||
            		 $this->permission->general_info['contact_email'] != 0): ?>
                <div class="title"><?php echo $this->translator()->widget('contact_information'); ?></div>
            <?php endif;?>
            <?php if(!$this->permission || $this->permission->general_info['contact_address'] == 1   || $this->permission_viewall == 1) :?>
                <div class="subc100 textp"><strong><?php echo $this->enterprise->contact_address; ?></strong></div>
            <?php endif; ?>
            <?php if(!$this->permission || $this->permission->general_info['contact_tel'] == 1   || $this->permission_viewall == 1) :?>
                <div class="subc10l textp">Tel:</div>
                <div class="subc10r textp"><strong><?php echo $this->enterprise->contact_tel ; ?></strong></div>
            <?php endif; ?>
            <?php if(!$this->permission || $this->permission->general_info['contact_fax'] == 1   || $this->permission_viewall == 1) :?>
                <div class="subc10l textp">Fax:</div>
                <div class="subc10r textp"><strong><?php echo $this->enterprise->contact_fax; ?></strong></div>
            <?php endif; ?>
            <?php if(!$this->permission || $this->permission->general_info['contact_email'] == 1   || $this->permission_viewall == 1) :?>
                <div class="subc10l textp">Email:</div>
                <div class="subc10r textp"><strong><a href="mailto:<?php echo $this->enterprise->contact_email; ?>"><?php echo $this->enterprise->contact_email; ?></a></strong></div>
            <?php endif; ?>

        </div>
    </div>
</div>
<div class="subcolumns">
    <div class="c30l">
        <div class="subc"> <div class="title"><?php echo $this->translator()->widget('reputation_index');?></span> <span class="index"><?php echo $this->enterprise->evaluation_point;?> / <?php echo $this->enterprise->evaluation_counter;?></span></div>
            <?php
                $arrRouteGeneral = array(
                    'enterprise_id' => $this->enterprise->id,
                    'enterprise_name' => Tomato_Utility_String::removeSign($this->enterprise->company_name_en, '-', true)
                );
            ?>
            <p><a href="<?php echo $this->url($arrRouteGeneral, 'customer_customer_evaluation_enterprise');?>">> <?php echo $this->translator()->widget('view_transaction_history');?></a></p>
        </div>
    </div>
    <div class="c30m">
        <?php if(!$this->permission || $this->permission->general_info['bank_account_vnd'] == 1   || $this->permission_viewall == 1) :?>
        <div class="subc"> <div class="title"><?php echo $this->translator()->widget('vnd_bank_account'); ?></div>
            <div class="subc100 textp"><strong><?php echo $this->enterprise->bank_name_vnd ?></strong></div>
            <div class="subc10l textp"><?php echo $this->translator('bizprofile_user_registerenterprise_bank_account_owner', 'bizprofile'); ?>:</div>
            <div class="subc10r textp"><strong><?php echo $this->enterprise->bank_account_owner_vnd ;?></strong></div>
            <div class="subc10l textp"><?php echo $this->translator('bizprofile_user_registerenterprise_bank_account', 'bizprofile'); ?>: </div>
            <div class="subc10r textp"><strong><?php echo $this->enterprise->bank_account_vnd ;?></strong></div>
        </div>
        <?php endif; ?>
    </div>
    <div class="c40r">
        <?php if(!$this->permission || $this->permission->general_info['bank_account_usd'] == 1   || $this->permission_viewall == 1) :?>
        <div class="subc"> <div class="title"><?php echo $this->translator()->widget('usd_bank_account'); ?></div>
            <div class="subc100 textp"><strong><?php echo $this->enterprise->bank_name_usd ?></strong></div>
            <div class="subc10l textp"><?php echo $this->translator('bizprofile_user_registerenterprise_bank_account_owner', 'bizprofile'); ?>:</div>
            <div class="subc10r textp"><strong><?php echo $this->enterprise->bank_account_owner_usd ;?></strong></div>
            <div class="subc10l textp"><?php echo $this->translator('bizprofile_user_registerenterprise_bank_account', 'bizprofile'); ?>: </div>
            <div class="subc10r textp"><strong><?php echo $this->enterprise->bank_account_usd ;?></strong></div>

        </div>
        <?php endif; ?>
    </div>
</div>
<div class="subcolumns pb10">
    <div class="c30l">
        <div class="subc title"> <span class="index"><?php echo $this->countReComment;?></span>&nbsp;<?php echo $this->translator()->widget('num_enterprise_write_recomment');?> <?php echo $this->enterprise->company_name_en; ?></div>
		<?php 
				$arrParamPartner = array(
                    'enterprise_id'   => $this->enterprise->id,
                    'enterprise_name' => Tomato_Utility_String::removeSign($this->enterprise->company_name_en, '-', true)
                );			
		?>
        <p><a href="<?php echo $this->url($arrParamPartner,'bizprofile_partner_list');?>">> <?php echo $this->translator()->widget('read_recomment');?></a></p>
    </div>
    <div class="c30m">
        <div class="subc">
            <?php if(!$this->permission || $this->permission->enterprise_info[4] == 1   || $this->permission_viewall == 1) :?> <!-- Quy mô DN -->
            <div class="title">
                <?php echo $this->translator()->widget('enterprise_scale'); ?>
                <?php if($this->info && $this->user_entity == 0) :?>
                    <?php
                        $arrRouteInfo = array(
                            'enterprise_id' => $this->enterprise->id,
                            'enterprise_name' => Tomato_Utility_String::removeSign($this->enterprise->company_name_en, '-', true),
                            'info_id' => $this->info->info_id
                        );
                    ?>
                    <a href="<?php echo $this->url($arrRouteInfo, 'bizprofile_user_edit_enterprise_info'); ?>"><img src="<?php echo $skin_url; ?>/images/edit.png" /></a>
                <?php endif; ?>
            </div>
            <?php if($this->info) :?>
                <div class="textp">
                    <?php echo $this->info->info_string;?>
                </div>
            <?php endif; ?>
            <?php endif; ?>
        </div>
    </div>
    <div class="c40r">
        <?php if((!$this->permission || $this->permission->general_info['professional'] == 1   || $this->permission_viewall == 1) && count($this->profession) > 0) :?>
        <div class="subc"> <div class="title"><?php echo $this->translator()->widget('business_fields'); ?></div>
            <div class="subcolumns">
                <?php foreach ($this->profession as $item) : ?>
                    <div class="c50l">
                        <?php echo ($this->lang == 'vi_VN')? $item->professions_name : $item->professions_name_en; ?>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
        <?php endif; ?>
    </div>
</div>
<?php endif; ?>